<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
   xmlns:f="http://xmlns.jcp.org/jsf/core"
   xmlns:h="http://xmlns.jcp.org/jsf/html"
   xmlns:p="http://primefaces.org/ui"   
   xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
   template="/WEB-INF/templates/default.xhtml">
   
   	<f:metadata>	   	
	   	<f:viewParam name="firstResult" value="#{sectorList.firstResult}"></f:viewParam>	
   	</f:metadata>
   	<ui:define name="head">
   		<style type="text/css">
	   		.jiandu-content ul{
	   			min-height:150px
	   		}
	   		
	   		li{list-style: none}
	   		
	   		.sub_box1,.sub_box2,.sub_box3,.sub_box4{
	   			overflow: hidden;
	   		}	
   		</style>
   	<h:outputStylesheet name="css/public/override_primefaces.css" />
   	</ui:define>
   	<ui:define name="content">
	<h:form id="form">
		<div class="sub_box1" style="width:500px">
			
				<div class="sub_box_tit">
					<h2>
						<span>未审核公告</span>
						<p:link outcome="unauditBulletinList.xhtml" style="margin-right:20px;">
							更多&gt;&gt;
						</p:link>						
					</h2>
					<div class="jiandu-content">
						<ul >
							<p:repeat var="_bulletin" value="#{unauditBulletinList.resultList}" size="#{unauditBulletinList.resultCount &gt; 7 ? 7 : unauditBulletinList.resultCount}">
								<li>
									<p:link outcome="BulletinAudit.xhtml">
										<f:param name="bulletinId" value="#{_bulletin.id}"></f:param>
										<h:outputText value="#{_bulletin.projectName}" />										
									</p:link>
								</li>
							</p:repeat>
							<h:outputText value="暂无需要审核的公告" rendered="#{unauditBulletinList.resultCount == 0}" />
						</ul>
					</div>
				</div>
		</div>          
	   	<div class="sub_box2" style="width:500px;margin-right:20px">
				<div class="sub_box_tit">
					<h2>
						<span>未审核公告-择优选取</span>
						<p:link outcome="BestChooseList.xhtml" style="margin-right:20px;" size="#{auditBestChooseList.resultCount &gt; 5 ? 5 : auditBestChooseList.resultCount}">
							更多&gt;&gt;
						</p:link>						
					</h2>
					<div class="jiandu-content">
						<ul >
							<p:repeat var="_bulletin" value="#{auditBestChooseList.resultList}">
								<li>
									<p:link outcome="BestChooseAudit.xhtml">
										<f:param name="bulletinId" value="#{_bulletin.id}"></f:param>
										<h:outputText value="#{_bulletin.projectName}" />										
									</p:link>
								</li>
							</p:repeat>
							<h:outputText value="暂无需要审核的公告" rendered="#{auditBestChooseList.resultCount == 0}" />
						</ul>
					</div>
				</div>
		</div>
		<div class="sub_box1" style="width:500px">
				<div class="sub_box_tit">
					<h2>
						<span>未审核的中介机构</span>
						<p:link outcome="ServiceSupplierList.xhtml" style="margin-right:20px;">
							更多&gt;&gt;
						</p:link>						
					</h2>
					<div class="jiandu-content">
						<ul >
							<p:repeat var="_supplier" value="#{serviceSupplierManageList.unauditSuppliers}" >
								<li>
									<p:link outcome="ServiceSupplierAudit.xhtml">
										<f:param name="serviceSupplierId" value="#{_supplier.id}"></f:param>
										<h:outputText value="#{_supplier.cnname}" />										
									</p:link>
								</li>
							</p:repeat>
							<h:outputText value="暂无需要审核的中介机构" rendered="#{serviceSupplierManageList.unauditSuppliers.size() == 0}" />
						</ul>
					</div>
				</div>
		</div>           
	   	<div class="sub_box2" style="width:500px;margin-right:20px">
				<div class="sub_box_tit">
					<h2>
						<span>未审核的采购方用户</span>
						<p:link outcome="ServiceBuyerList.xhtml" style="margin-right:20px;" >
							更多&gt;&gt;
						</p:link>						
					</h2>
					<div class="jiandu-content">
						<ul >
							<p:repeat var="_buyer" value="#{serviceBuyerList.unauditBuyers}">
								<li>
									<p:link outcome="ServiceBuyerAudit.xhtml">
										<f:param name="serviceBuyerId" value="#{_buyer.id}"></f:param>
										<h:outputText value="#{_buyer.cnname}" />										
									</p:link>
								</li>
							</p:repeat>
							<h:outputText value="暂无需要审核的采购方用户" rendered="#{serviceBuyerList.unauditBuyers.size() == 0}" />
						</ul>
					</div>
				</div>
		</div> 
    </h:form>
   	</ui:define>
</ui:composition>
